package com.yuhong.springbootinit.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yuhong.springbootinit.model.dto.application.ApplicationQueryRequest;
import com.yuhong.springbootinit.model.entity.Application;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yuhong.springbootinit.model.vo.ApplicationVO;

import javax.servlet.http.HttpServletRequest;

/**
* @author 10467
* @description 针对表【application】的数据库操作Service
* @createDate 2025-02-22 13:52:10
*/
public interface ApplicationService extends IService<Application> {

    void validApplication(Application invitation, boolean add);

    ApplicationVO getApplicationVO(Application invitation, HttpServletRequest request);

    Page<ApplicationVO> getApplicationVOPage(Page<Application> invitationPage, HttpServletRequest request);

    /**
     * 获取查询条件
     *
     * @param positionQueryRequest
     * @return
     */
    QueryWrapper<Application> getQueryWrapper(ApplicationQueryRequest positionQueryRequest);
}
